package com.web.dao;

import java.util.List;
import java.util.Map;


/**
 * 
 * 基础Dao接口
 * 
 * @author wzy
 * @date 2016-03-28 15:01:23
 */
@MyBatisRepository
public interface BaseDao<T> {
	public int deleteByPrimaryKey(Long id);

	public int insert(T record);

	public int insertSelective(T record);

	public T selectByPrimaryKey(Long id);

	public int updateByPrimaryKey(T record);

	public List<T> selectList(Map<String, Object> map);
	
	public int selectListCount(Map<String, Object> map);
	
	public T selectByModelSelective(T record);
	
	public void insertList(List<T> list);
	
}
